<?php

/**
 * Description of Boom
 *
 * @author JeyDotC
 * @export Modules
 * @export-metadata default-module
 */
class Unhandled extends Module {
    public function index() {
        $isDebugging = ModulesContext::instance()->getConfig()->debug;
        $ex = $this->getLastUnhandledException();
        $lastTriedAction = $this->route->appAction($ex->getApp(), $ex->getModule(), $ex->getTask());
        $returnURL = $this->route->moduleAction("FrontPage");
        
        $this->assign("isDebugging", $isDebugging);
        $this->assign("lastTriedAction", $lastTriedAction);
        $this->assign("returnURL", $returnURL);
        $this->assign("ex", $ex);
        
        $this->display();
    }

}

?>
